package tothreedesignmodel.prototype;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 16:25 2020/7/17
 * @Modified
 */
@Data
@AllArgsConstructor
public class Square extends Shape {
    private int a;
    @Override
    public void countArea() {
        System.out.println("该正方形的面积="+a*a+"\n");
    }
}
